package com.ruoyi.web.controller.mall.goodsTagLink.service.impl;

import com.ruoyi.web.controller.mall.goodsTagLink.domain.GoodsTagLink;
import com.ruoyi.web.controller.mall.goodsTagLink.mapper.GoodsTagLinkMapper;
import com.ruoyi.web.controller.mall.goodsTagLink.service.IGoodsTagLinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 商品标签关联Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class GoodsTagLinkServiceImpl implements IGoodsTagLinkService 
{
    @Autowired
    private GoodsTagLinkMapper goodsTagLinkMapper;

    /**
     * 查询商品标签关联
     * 
     * @param goodsId 商品标签关联ID
     * @return 商品标签关联
     */
    @Override
    public GoodsTagLink selectGoodsTagLinkById(String goodsId)
    {
        return goodsTagLinkMapper.selectGoodsTagLinkById(goodsId);
    }

    /**
     * 查询商品标签关联列表
     * 
     * @param goodsTagLink 商品标签关联
     * @return 商品标签关联
     */
    @Override
    public List<GoodsTagLink> selectGoodsTagLinkList(GoodsTagLink goodsTagLink)
    {
        return goodsTagLinkMapper.selectGoodsTagLinkList(goodsTagLink);
    }

    /**
     * 新增商品标签关联
     * 
     * @param goodsTagLink 商品标签关联
     * @return 结果
     */
    @Override
    public int insertGoodsTagLink(GoodsTagLink goodsTagLink)
    {
        return goodsTagLinkMapper.insertGoodsTagLink(goodsTagLink);
    }

    /**
     * 修改商品标签关联
     * 
     * @param goodsTagLink 商品标签关联
     * @return 结果
     */
    @Override
    public int updateGoodsTagLink(GoodsTagLink goodsTagLink)
    {
        return goodsTagLinkMapper.updateGoodsTagLink(goodsTagLink);
    }

    /**
     * 删除商品标签关联对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteGoodsTagLinkByIds(String[] ids)
    {
        return goodsTagLinkMapper.deleteGoodsTagLinkByIds(ids);
    }

    /**
     * 删除商品标签关联信息
     * 
     * @param goodsId 商品标签关联ID
     * @return 结果
     */
    @Override
    public int deleteGoodsTagLinkById(String goodsId)
    {
        return goodsTagLinkMapper.deleteGoodsTagLinkById(goodsId);
    }
}
